
import React from "react"
import { Modal } from "antd"
import "./_index.less";
/**
 * 
 * @param param 
 * isOpen true 打开 false 关闭
 * content 文本
 * 
 * isMaskClose 是否模态框关闭 默认false
 * width 文本框宽度
 * @returns 
 */
const PageLoading = (props: any) => {
  const { content, isOpen, isMaskClose = false, width = 200 } = props
  return (
    <Modal
      open={isOpen}
      footer={null}
      centered
      maskClosable={isMaskClose}
      closable={false}
      title={null}
      width={width}
      bodyStyle={{ background: "none" }}
      className="dot-body"
      wrapClassName="spin-example"
    >
      {content && <p>{content}</p>}
      <div className="loadings">
        <div />
        <div />
        <div />
      </div>
    </Modal>
  )
}
export default PageLoading